Dokumentaro de Gambaso
Compilation & Installation
Components
gb
Array
Error
gb.crypt
gb.qt4
Documents
Indekso de Lingvo
Language Overviews
LeguMin
Lexicon
Registro

Integer[].SortUsing (gb)

Function SortUsing ( Order As Array [ , Mode As Integer ] ) As Integer[]

Since 3.13

Sort the array using the order defined by the Order array.

In other words, sort the array by using the substitution generated by Order.Sort(Mode).

The two arrays must have the same number of elements, otherwise an error is raised.

Note that the SortUsing method has to create a temporary integer array of the same size as the sorted array.

If your array is big, the required memory cannot be neglected.

See also